<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html style="overflow: auto;">
<head>
	<title>空进空出</title>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	<meta name="decorator" content="ani"/>
	<%@ include file="/webpage/include/bootstraptable.jsp"%>
	<%@include file="/webpage/include/treeview.jsp" %>
	<script type="text/javascript">
	function create() {
		var erpOrderId=$("#erpOrderId").val();
		var purchaseOrderPrice=$("#purchaseOrderPrice").val();
		$.ajax({
            url: "${ctx}/sc/order/order/nullINNullOut?erpOrderId="+erpOrderId+"&purchaseOrderPrice="+purchaseOrderPrice,
            type: "post",
            data:{},
            beforeSend: function () {
                index = layer.load(1, {
                    shade: [0.5, '#fff'] //0.1透明度的白色背景
                });
            },
            complete: function () {
                layer.close(index);
            },
            success: function (data) {

                if (data== "1") {
                    layer.alert('保存成功!', {icon: 1, closeBtn: 0}, function (index) {
                    	layer.close(index);	
                    	$('#table').bootstrapTable('refresh');	
                    });
                }
                else {
                	layer.alert(data, {
                        icon: 2,
                        title: "提示"
                    });
				}
            },
            error: function (e) {
                layer.alert('保存失败!', {
                    icon: 2,
                    title: "提示"
                });

            }
        });
	}
</script>
</head>
<body>
<div class="wrap">
	订单id<input id="erpOrderId" type="text" />
	采购总价<input id="purchaseOrderPrice" type="text" />元
	<input onclick="create()" type="button" value="提交" />
</div>
</body>

</html>